import request from '@/utils/request'

// 查询机台与附属工单
export function findPlanMachine (params) {
    return request({
        params,
        url: '/back/planMachine/findPlanMachine',
        method: 'post'
    })
}
// 删除机台与附属工单
export function delPlanMachine (params) {
    return request({
        params,
        url: '/back/planMachine/delPlanMachine',
        method: 'post'
    })
}
// 机台添加工单
export function insPlanMachine (params) {
    return request({
        params,
        url: '/back/planMachine/insPlanMachine',
        method: 'post'
    })
}
// 修改工单机台信息
export function updPlanMachine (params) {
    return request({
        params,
        url: '/back/planMachine/updPlanMachine',
        method: 'post'
    })
}
// 刷新扫码记录
export function synchronousRecording (params) {
    return request({
        params,
        url: '/back/planMachine/synchronousRecording',
        method: 'post'
    })
}
// 工单工艺
export function getPlanMachine(params) {
    return request({
        params,
        url: '/back/planMachine/getPlanMachine',
        method: 'post'
    })
}
// 查询打印数据
export function findword02(data) {
    return request({
        data,
        url: '/device/NumericalControl/findword02',
        method: 'post'
    })
}

// 查询打印数据
export function findWorkCenterLimit1(data) {
    return request({
        params:data,
        url: '/back/processJobClass/findWorkCenterLimit1',
        method: 'post'
    })
}


// 打印流程卡
export function word02(data) {
    return request({
        data,
        url: '/device/NumericalControl/word02',
        method: 'post',
        responseType: 'blob',
    })
}
// 打印机列表
export function findZplPrinterInfoList(data) {
    return request({
        data,
        url: '/device/NumericalControl/findZplPrinterInfoList',
        method: 'post'
    })
}
// 流程卡打印记录
export function findZplPrinterInfo(data) {
    return request({
        data,
        url: '/device/NumericalControl/findZplPrinterInfo',
        method: 'post'
    })
}